<link rel="stylesheet" type="text/css" href="<?php echo $default_dir; ?>css/header.css" media="all"/>
<link rel="stylesheet" type="text/css" href="<?php echo $default_dir; ?>css/screen.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<?php echo $default_dir; ?>css/print.css" media="print"/>
<?php
	if(strlen($_GET['err_msg']) != 0){
		?><script language="javascript">alert("<?php echo $_GET['err_msg'] ?>")</script><?
	}
?>
<?php 
	$vals = read("presentation/menu.xml"); 
	$links = array();
	$displays = array();
	foreach($vals as $item){
		if($item['tag'] == 'MENU_ITEM'){
			$menu = $item['attributes'];
			array_push($displays, $menu['DISPLAY']);
			array_push($links, "index.php?page=".$menu['PAGE']."&entity=".$menu['ENTITY']);
		}
	}
?>
<div id="Header" class="unprintable">
	<div id="Tabs">
		<ul id="navmenu">
			<? for($i=0; $i<sizeof($displays); $i++){ ?>
				<li><a href='<?php echo $links[$i] ?>'><?php echo $displays[$i] ?></a></li>
			<? } ?>
		</ul>
	</div>
</div>
